package design.subject;

/**
 * 代替原有实现类，增加了新的业务逻辑。在不改变原有实现的情况下，扩展实现
 * 作用跟装饰器模型差不多，殊途同归！
 */
public class TestDesign {

    public static void main(String[] args) {
        Subject subject = new RealSubject();
        ProxyLawyer proxyLawyer = new ProxyLawyer(subject);
        proxyLawyer.lawsuit();
    }
}
